#ifndef THREAD_POOL_MYIDENTIFY_1985
#define THREAD_POOL_MYIDENTIFY_1985
  
#include <boost/function.hpp>
namespace threadpool
{
    typedef boost::function<void()> task_type;
    extern "C" bool init_thread_pool();
    extern "C" void destroy_thread_pool();
    extern "C" bool queue_work_task(task_type const& task,int flag);
    //if failed,return 0. Otherwise return the unique id.
    extern "C" int  queue_timer_task(task_type const& task,int delaysec,bool repeatflag);
    extern "C" void deletetimerbyid(int timerid);
}
#endif
